package com.fzshang.commen.bean;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author 冯政尚
 * @since 2020-02-14
 */
@ApiModel(value="PlanceAnOrder对象", description="订单表")
public class PlanceAnOrder extends Model<PlanceAnOrder> {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Long id;

    @ApiModelProperty(value = "菜品id")
    @TableField("commodity_id")
    private Long commodityId;

    @ApiModelProperty(value = "单号")
    @TableField("odd_numbers")
    private String oddNumbers;

    @ApiModelProperty(value = "菜品单价")
    @TableField("commodity_price")
    private String commodityPrice;

    @ApiModelProperty(value = "桌号id")
    @TableField("table_number_id")
    private Long tableNumberId;

    @ApiModelProperty(value = "状态 1未付款 2已付款")
    @TableField("state")
    private Integer state;

    @ApiModelProperty(value = "备注")
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Long createTime;


    @ApiModelProperty(value = "商家id")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty(value = "商品规格 1杯量 2份量")
    @TableField("specifications")
    private Integer specifications;

    @ApiModelProperty(value = "类型 1大 2中 3小")
    @TableField("type_size")
    private Integer typeSize;


    @ApiModelProperty(value = "时间")
    @TableField(exist = false)
    private String time;
    @ApiModelProperty(value = "桌号")
    @TableField(exist = false)
    private String tableNumber;

    @ApiModelProperty(value = "份量")
    @TableField(exist = false)
    private String weight;

    @ApiModelProperty(value = "菜品")
    @TableField(exist = false)
    private String name;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getTableNumber() {
        return tableNumber;
    }

    public void setTableNumber(String tableNumber) {
        this.tableNumber = tableNumber;
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getCommodityId() {
        return commodityId;
    }

    public void setCommodityId(Long commodityId) {
        this.commodityId = commodityId;
    }
    public String getOddNumbers() {
        return oddNumbers;
    }

    public void setOddNumbers(String oddNumbers) {
        this.oddNumbers = oddNumbers;
    }
    public String getCommodityPrice() {
        return commodityPrice;
    }

    public void setCommodityPrice(String commodityPrice) {
        this.commodityPrice = commodityPrice;
    }
    public Long getTableNumberId() {
        return tableNumberId;
    }

    public void setTableNumberId(Long tableNumberId) {
        this.tableNumberId = tableNumberId;
    }
    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }
    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }
    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }
    public Integer getSpecifications() {
        return specifications;
    }

    public void setSpecifications(Integer specifications) {
        this.specifications = specifications;
    }
    public Integer getTypeSize() {
        return typeSize;
    }

    public void setTypeSize(Integer typeSize) {
        this.typeSize = typeSize;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "PlanceAnOrder{" +
            "id=" + id +
            ", commodityId=" + commodityId +
            ", oddNumbers=" + oddNumbers +
            ", commodityPrice=" + commodityPrice +
            ", tableNumberId=" + tableNumberId +
            ", state=" + state +
            ", remarks=" + remarks +
            ", createTime=" + createTime +
            ", specifications=" + specifications +
            ", typeSize=" + typeSize +
        "}";
    }
}
